export let blood_pressure = {
  version: 1,
  multiple: true,
  slug: "blood_pressure",
  api: {
    add: "/smartform/api/enumeration",
    delete: "/smartform/api/enumeration",
    update: "/smartform/api/enumeration",
    get: "/smartform/api/enumerations"
  },
  display: {
    layout: "base-form"
  },
  fields: [
    {
      name: "field_1",
      label: "血压",
      enAbleLabel: false,
      type: "subform",
      fields: [
        {
          name: "field_1_1",
          label: "测压部位",
          type: "selectWithAdd",
          required: true,
          optionsName: "测压部位",
          options: [
            {
              label: "demo部位"
            }
          ]
        },
        {
          name: "field_1_2",
          type: "infinityTable",
          label: "血压",
          enAbleLabel: false,
          required: true,
          visible: true,
          //startDate: Date.now(),
          startDate: `$admissionDate#`,
          startDateDescription: "住院日",
          sign: [{ tick: Date.now() + 2 * 86400000, tip: "手术日" }],
          step: 86400000, //一天的毫秒数
          placeholder: "",
          groups: ["6AM", "10AM", "2PM", "6PM"],
          repeat: [
            {
              label: "收缩压",
              type: "number",
              name: "field_2",
              required: false,
              validator: {
                message: "收缩压不能大于舒张压"
              }
            },
            {
              label: "舒张压",
              type: "number",
              name: "field_3",
              validator: {
                message: "舒张压不能小于收缩压"
              },
              required: false
            }
          ]
        }
      ]
    }
  ]
};
